import request from '@/utils/request'
// -------- 问答 --------

let BASE_ADDRESS = 'doc/qa'

//  查询列表
export function getQaListApi(params) {
    return request({
        url: `${BASE_ADDRESS}/list`,
        method: "get",
        params
    })
}
// 查询问答详细
export function getQaGetInfoApi(params) {
    return request({
        url: `${BASE_ADDRESS}/getInfo?id=${params}`,
        method: "get",
    })
}

// 修改问答详细
export function getQaEditApi(data) {
    return request({
        url: `${BASE_ADDRESS}/edit`,
        method: "put",
        data
    })
}

// 下架问答
export function getQaUpdateStatusApi(data) {
    return request({
        url: `${BASE_ADDRESS}/updateStatus`,
        method: "put",
        data
    })
}
